<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    //常量是一旦声明，不能更改，其次声明及赋值，必须初始化
    const PI = 3.14
    console.log(PI);
    PI = 1.2
  </script>
</body>

</html>